<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>异常</title>
</head>
<style>
    html,body{
        height: 100%;
    }
    .container{
        width: 100%;
        height: 100%;
        background: #efeff4;
    }
    .content{
        width: 20%;
        margin: 0 auto;
        text-align: center;
        padding-top: 20%;
    }
    .content img{
        margin-bottom: 15px;
        width: 64px;
        height: 64px;
    }
    .content p {
        color: #999999;
        font-size: 16px;
    }

</style>
<body>
    <div class="container">
        <div class="content">
            <img th:src="@{/img/errlogo.png}" alt="">
            <p id="info"></p>
        </div>
    </div>
    
    <script th:inline="javascript"> var ctx = [[@{/}]]; var captchaType = [[${captchaType}]]; </script>
	<script src="../static/js/jquery.min.js" th:src="@{/js/jquery.min.js}"></script>

    <script>
    $(function() {
    	var status = GetQueryString("status");
    	if(status == '1'){
    		$('#info').html('用户不存在或已被删除');
    	}else if(status == '2'){
    		$('#info').html('您的账号已被删除');
    	}else if(status == '3'){
    		$('#info').html('您的账号已被禁用,若有需要,请联系管理员哦');
    	}else if(status == '4'){
    		$('#info').html('用户不存在或者密码错误');
    	}else if(status == '5'){
    		$('#info').html('您无权限进入订餐管理系统');
    	}else{
    		$('#info').html('网络出错，请稍后重试');
    	}
    })
    
    function GetQueryString(name)
	{
		 var urldecode = decodeURI(window.location.search);
	     var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
	     var r = urldecode.substr(1).match(reg);//search,查询？后面的参数，并匹配正则
	     if(r!=null)return  unescape(r[2]); return null;
	}
    </script>
</body>
</html>
